Hi,
I have a question on database auditing on SELECT statements on a table.syntax:
CREATE DATABASE AUDIT SPECIFICATION AuditSelectSpec FOR SERVER AUDIT Audit_Select_Host ADD (SELECT ON OBJECT::[STVDB].[HOST] BY [dbo])When I query the fn(), I also see INSERT/UPDATE/DELETE statements, but I wanted to audit only SELECTs, and my syntax is clearly showing I'm auditing only SELECT. I'm not sure what mistake I'm doing or what's the mistake I'm doing.
Could you please help me, I need some hand?Version of SQL server: sql server 2012
Another question related to auditing.
How could I get SELECT statement start and end times(to calculate execution time of the query) using database auditing in sqlserver?Regards
Raju angani@gmail.com